﻿using Iesi.Collections.Generic;
using NHibernate.Validator.Constraints;
using TestBat.IModels.Domain;

namespace TestBat.Models.Domain
{
    public class TraineeGroup : DomainEntity, ITraineeGroup
    {
        public TraineeGroup()
        {
            Trainees = new HashedSet<ITrainee>();
            ScheduleTraineeGroups = new HashedSet<IScheduleTraineeGroup>();
        }

        [NotEmpty]
        [Length(255)]
        public virtual string Name
        {
            get;
            set;
        }

        public virtual ISet<ITrainee> Trainees
        {
            get;
            private set;
        }

        public virtual ISet<IScheduleTraineeGroup> ScheduleTraineeGroups
        {
            get;
            private set;
        }
    }
}
